<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>03_边框与内间距测试</title>
    <style>
        .d1 {
            width: 200px;
            height: 200px;
            background-color: yellow;
            border-top: 9px dotted #f0f;
            border: 5px solid #f00;
            border-radius: 50px;
        }

        .d2 {
            width: 200px;
            height: 60px;
            background-color: cyan;
            border-radius: 30px;

        }

        .d3 {
            width: 200px;
            height: 100px;
            background-color: magenta;
            border-radius: 100px/50px;
        }

        .d4 {
            width: 200px;
            height: 200px;
            background-color: cyan;
            border: 10px solid #00f;
            padding-left: 50px;
            margin: 50px;
            box-sizing: border-box;

        }

        .s2 {
            /*行内间距内外都不生效*/
            background-color: cyan; /* 背景色 */
            padding: 50px;
        }
    </style>
</head>
<body>
    <div class="d1"></div>
    <div class="d2"></div>
    <div class="d3"></div>
    <div class="d4">间距测试</div>
    <span>span1</span>
    <span class="s2">span2</span>
    <span>span3</span>
    <h1>666666</h1>
</body>
</html>